#ifndef __UARTTOPC_H__
#define __UARTTOPC_H__

extern uint8_t usart2_rx_buffer[100];
extern volatile uint8_t usart2_rx_len; // Length of received data, updated by ISR
extern volatile uint8_t usart2_recv_end_flag; // Receive completion flag

void uartToPC_receive_itHandler(uint8_t* rc_buffer);
void uart_transmit_float(float data, int width, int prec);
void uart_transmit_int(int data);
uint8_t* dtostrf(double value, int width, int prec, uint8_t* str);
uint8_t* inttostr(int num, uint8_t* str);
int my_strlen(uint8_t* buffer);

#endif
